<?php
  session_start();
  if(empty($_SESSION['auth_username']) && empty($_SESSION['auth_password']))
  {
    header('Location: ../index.php');
  } else if ($_SESSION['auth_level'] == 1)
  {
    header('Location: ../index.php');
  }
?>

<html>
  
  <head>
    <title>Admin - Center</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" type="text/css" href="../style.css" />
  </head>
  
  <body>
    <div id="menu">
      <div id="header_admin"><img src="../graphics/header_admin.png" /></div>
      <div id="admin_menu">
        <div id="admin_item">Hallo <?php echo $_SESSION['auth_username']; ?>!</div>
        <a href="../index.php"><div id="admin_item">Home</div></a>
        <a href="woerter.php"><div id="admin_item">W&ouml;rter</div></a>
        <a href="suggestion.php"><div id="admin_item">Vorschl&auml;ge</div></a>
        <a href="userverwaltung.php"><div id="admin_item">Userverwaltung</div></a>
        <a href="xml.php"><div id="admin_item">XML *BETA</div></a>
        <a href="ausgabe.php"><div id="admin_item">XML - Ausgabe *BETA</div></a>
        <a href="setting.php"><div id="admin_item">Settings</div></a>
        <a href="../logout.php"><div id="admin_item">Ausloggen</div></a>
      </div>
    </div>
    
  </body>
</html>
